package com.fsnbigdata.domain.query;

import com.fsnbigdata.domain.QProduct;
import com.querydsl.core.types.EntityPath;
import com.querydsl.core.types.dsl.StringExpression;
import org.springframework.data.querydsl.binding.QuerydslBinderCustomizer;
import org.springframework.data.querydsl.binding.QuerydslBindings;


public class ProductQueryDslBinder implements QuerydslBinderCustomizer<QProduct> {
    @Override
    public void customize(QuerydslBindings bindings, QProduct root) {
        bindings.bind(root.name).first(StringExpression::containsIgnoreCase);
    }
}
